/**
 * 承运商管理Api
 * @author 方礼爱
 * @version 1.0.0
 */
import request from '@/utils/request'

export const getAllCysForPage = (search) => {
  return request.fetchGet('/cys/cys/showCysList', search)
}

export const addCys = (cys) => {
  return request.fetchPost('/cys/cys/doAddCys', cys)
}

export const delCys = (cysId) => {
  return request.fetchPost('/cys/cys/doDeleteCys', { 'cysId': cysId })
}

/**
 * 禁用/启用
 * @param cysId
 * @returns {*}
 */
export const doSwitchCysUse = (cysId) => {
  return request.fetchPost('/cys/cys/doSwitchCysUse', { 'cysId': cysId })
}
